package com.tanger.im.entity;

import com.tanger.common.jpa.IDEntity;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import java.io.Serializable;

/**
 * @Description IM用户通讯录实体类
 * @Author Hchenbin
 * @Date 2023/12/25 16:28
 * @Version 1.0
 */
@Data
@Entity
@Api(value = "IMUserContacts", tags= " IM用户通讯录实体类")
@Table(name = "im_user_contacts")
public class ImUserContacts extends IDEntity implements Serializable {

	@Column(columnDefinition = "bigint(20) DEFAULT NULL COMMENT '用户ID'")
	@ApiModelProperty(value = "用户ID")
	private Long userId;
	@Column(columnDefinition = "bigint(20) DEFAULT NULL COMMENT '好友ID'")
	@ApiModelProperty(value = "好友ID")
	private Long cronyId;
	@Column(columnDefinition = "varchar(50) DEFAULT NULL COMMENT '备注(姓名)'")
	@ApiModelProperty(value = "备注(姓名)")
	private String name;
	@Column(columnDefinition = "int(1) NOT NULL COMMENT '是否黑名单(1.是 0.否)'")
	@ApiModelProperty(value = "是否黑名单(1.是 0.否)")
	private Integer isBlack;
	@Column(columnDefinition = "int(1) NOT NULL COMMENT '是否删除(0.否 1.是)'")
	@ApiModelProperty(value = "是否删除(0.否 1.是)")
	private Integer isDel;
	@Column(columnDefinition = "bigint(20) NOT NULL COMMENT '创建时间'")
	@ApiModelProperty(value = "创建时间")
	private Long createTime;
}
